<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Upload PDF</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-5">
    <h2>Upload PDF File</h2>
    <p>Upload a PDF file containing questions and answers.</p>

    <div th:if="${message}" class="alert alert-info" th:text="${message}"></div>

    <form method="POST" action="/upload" enctype="multipart/form-data">
        <div class="form-group">
            <input type="file" name="file" class="form-control-file">
        </div>
        <button type="submit" class="btn btn-primary">Upload</button>
    </form>
    <hr>
    <a href="/search" class="btn btn-secondary">Go to Search Page</a>
</div>
</body>
</html> 